home *** CD-ROM | disk | FTP | other *** search
- {------------------------ DEFAREA ------------------------
-
- {User enters name of desired area and picks the boundary
- {that is on drawing, Note user must pick the edge of the
- {boundary desired. Boundary may be pick with any function
- {mouse, space bar or locate function.
- PROMPT Prompt=`Enter Name of Area` Var=#Name Type=String
- PROMPT Prompt=`Pick Area Boundary` Var=#P1 Type=Coor
-
- {System measure area of boundary.
- AA,P,Silent [A,#P1.x,#P1.y,B|;]
- #S=Str(%AA.A + .05) {Sys Rnds Num to Nearest 1/10, Conv to Char String
- #N=Find(#S `.`) + 1 {Finding Dec Pnt + 1 to locate 1/10 position
- #A=Subn(#S 1 #N) {Makes a Substring of #S From 1 position to #N
- #A=cat(#A ` sq ft`) {Adds the 'sq ft' to the Substring
-
- {Sys Adds the Area to the Drawing
- Tx CC .1 Cl=200 La=200 Pe=0 Ang=0 Pla=Pts Ty=S At=2 \
- [A,#P1.x,#P1.y -1.5|;]
- #A
-
- {Sys Adds Area Name to the Drawing
- Tx CC .1 Cl=200 La=200 Pe=0 Ang=0 Pla=Pts Ty=S At=1 \
- [A,#P1.x,#P1.y|;]
- #Name
-
- {Sys Groups Text Together With a Tag Name
- GP Tag=Space Class=200 [A,#P1.x,#P1.y|-|-|;]
-
- {User Moves Text to Desired Location
- Message St=`Place Text in Desired Location` Time=3
- MV [-]
-
- RETURN
-
-